package com.dev.op.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dev.op.entity.User;
import com.dev.op.entity.UserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【user_role】的数据库操作Service
* @createDate 2025-03-29 17:34:04
*/
public interface UserRoleService extends IService<UserRole> {
    List<UserRole> getUserRolesByUserId(String userId);
    Boolean grantUserRolesByRolesId(String userId, List<String> roleIds);
    Boolean grantUserRolesByRolesName(String userId, List<String> roleNames);
    List<User> getAdminUsers(int page,int size);
    List<User> getTeachers(int page,int size);
}
